const Router = require("@koa/router");
const router = new Router({ prefix: "/comment" });
const { auth } = require("../middleware/authMiddleware");
const { validator } = require("../middleware/commentMiddleware");
const { create, findAll, remove } = require("../controller/commentController");
router.post(
  "/",
  create
);
router.get("/", auth, findAll)
router.delete("/:id", auth, remove)
module.exports = router;
